﻿.clearfix, body header div#header-container, body header nav, body header nav ul, body header nav ul li ul.sub-nav-list, body section, body aside {
    zoom: 1;
}

.clearfix:after, body header div#header-container:after, body header nav:after, body header nav ul:after, body header nav ul li ul.sub-nav-list:after, body section:after, body aside:after, .clearfix:before, body header div#header-container:before, body header nav:before, body header nav ul:before, body header nav ul li ul.sub-nav-list:before, body section:before, body aside:before {
    content: "\0020";
    display: block;
    height: 0;
    overflow: hidden;
}

.clearfix:after, body header div#header-container:after, body header nav:after, body header nav ul:after, body header nav ul li ul.sub-nav-list:after, body section:after, body aside:after {
    clear: both;
}

body, header, section, footer, h1, h2, h3, h4, h5, h6, input, button, label, p, fieldset, nav, ul, li, a, span, strong, em
{
	margin:0;
	padding:0;
	border:0;
}
div, h1, h3, h4, h5, h6, header, footer, body, section, nav, article, aside {
    display: block;
}

.box_border_outset(){
	border: 2px outset #603382;
    border-radius: 10px;
    background-color: #9115EE;
    color: white;
    -webkit-box-shadow: 2px 2px 2px #8949B9;
    box-shadow: 2px 2px 2px #8949B9;
}


.box_border_iset(){
	border: 2px inset #603382;
	background-color: black;
}
.bg_gradient()
{
	font: 14px normal Arial;
    color: white;
    background: linear-gradient(top, #CB8EF4, #9115EE 20%);
    background: -o-linear-gradient(top, #CB8EF4, #9115EE 20%);
    background: -moz-linear-gradient(top, #CB8EF4, #9115EE 20%);
    background: -webkit-linear-gradient(top, #CB8EF4, #9115EE 20%);
    background: -ms-linear-gradient(top, #CB8EF4, #9115EE 20%);
}

.font_white_bold(){
	font-weight: bold;
	color: white
}



body {
	.bg_gradient();
	font: 14px normal Arial;
}

// heading and registration
#logo-container h1{
		float:left;
		margin: 15px;
	}

div #reg-form-container {
    float: right;
    margin: 30px 65px 0 0;


    & input {
        background-color: #9115EE;
        border: 2px inset #603382;
        border-radius: 5px;
        padding: 2px;
        margin: 5px;
    }

    & #btn-register {
       .box_border_outset();
        padding: 5px 8px;
		font-weight: bold;
		margin-left: auto;
        margin-right: auto;

		&:hover{
			.box_border_iset();
		}
    }
}

// navigation
ul {
    list-style-type: none;
}

.sub-nav-list {
    display: none;
}

header nav {
    display: inline-block;
    .box_border_outset();
    margin: 15px;
    width: 75%;

    & ul {
        list-style-type: none;

        li {
            float: left;
            margin: 5px 15px;

            & a {
                text-decoration: none;
                padding: 0 10px 0 10px;
                color: white;
            }
        }
    }


}


// display list menu
header nav ul li:hover > a {
    text-decoration: underline;
    color: #a8a8a8;
}


body header nav ul li:hover > a + ul {
    display: block;
}

body header nav ul li ul.sub-nav-list {
    position: absolute;
    display: none;
    background-color: rgba(179, 94, 243, 0.9);
    border-radius: 5px;
}

body header nav ul li ul li {
    float: none;
    margin: 0 15px;
    padding: 10px 0;
    border-bottom: 1px solid black;
}

body header nav ul li ul li:last-child {
	border-bottom: none;
}

// Section
section{
	width: 75%;
	float: left;
}
    section article {
        .box_border_outset();
        margin: 15px;
        padding: 15px;

        & header {
            padding: 5px;

            & h1 {
                font-size: 1.4em;
                padding: 0;
            }
        }

        & footer p {
            text-align: right;
            font-weight: normal;
            font-size: 1.1em;

			& a{
				text-decoration: none;
                color: #D5A5F8;

				&:hover{
					 text-decoration: underline;
				}
			}
			 
			& time{
				 font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', monospace;
			}
        }

    }

// Aside
aside{
	float: left;
	width: 20%;
	margin: 15px;
}

aside > ul > li {
	.box_border_outset();
	margin: 15px;
	padding: 15px;
}

body aside  ul  li p a{
	text-decoration: none;
    color: #D5A5F8;

	&:hover{
		text-decoration: underline;
	}
}
body aside > ul > li ul li {
    margin-top: 5px;
    margin-left: 10px;
    margin-bottom: 0px;
    margin-right: 0px;
    background: url(images/li-dot.png) no-repeat;
    background-position: 0 50%;
    padding-left: 25px;
}

// Footer
body footer {
    clear: both;
	padding: 15px 0 25px 0;
}

body footer p {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}